package com.sina.weibo.view;

import android.app.Activity;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.sina.weibo.ListItemEventHandler;
import com.sina.weibo.models.Account;

public class AccountListItemView extends LinearLayout
  implements View.OnClickListener
{
  public static final int ITEM_EDIT_DELETE_NORMAL = 5;
  public static final int ITEM_EDIT_DELETE_SELECTED = 4;
  public static final int ITEM_NORMAL = 1;
  public static final int ITEM_SELECTED;
  private Activity context;
  private Button deleteBtn;
  private ListItemEventHandler handler;
  private int itemPosition;
  private ImageView point;
  private TextView tvNickName;

  public AccountListItemView(Activity paramActivity, Account paramAccount, int paramInt1, int paramInt2, ListItemEventHandler paramListItemEventHandler)
  {
    super(paramActivity);
    this.context = paramActivity;
    this.handler = paramListItemEventHandler;
    this.itemPosition = paramInt1;
    LayoutInflater localLayoutInflater = (LayoutInflater)this.context.getSystemService("layout_inflater");
    switch (paramInt2)
    {
    case 2:
    case 3:
    default:
    case 0:
    case 1:
    case 5:
    case 4:
    }
    while (true)
    {
      TextView localTextView1 = (TextView)findViewById(2131623944);
      this.tvNickName = localTextView1;
      TextView localTextView2 = this.tvNickName;
      String str = paramAccount.nick;
      localTextView2.setText(str);
      return;
      View localView1 = localLayoutInflater.inflate(2130903043, this);
      ImageView localImageView1 = (ImageView)findViewById(2131623946);
      Drawable localDrawable1 = this.context.getResources().getDrawable(2130837917);
      localImageView1.setImageDrawable(localDrawable1);
      continue;
      View localView2 = localLayoutInflater.inflate(2130903043, this);
      continue;
      View localView3 = localLayoutInflater.inflate(2130903042, this);
      ImageView localImageView2 = (ImageView)findViewById(2131623943);
      this.point = localImageView2;
      Button localButton1 = (Button)findViewById(2131623945);
      this.deleteBtn = localButton1;
      this.deleteBtn.setOnClickListener(this);
      continue;
      View localView4 = localLayoutInflater.inflate(2130903042, this);
      ImageView localImageView3 = (ImageView)findViewById(2131623943);
      this.point = localImageView3;
      Button localButton2 = (Button)findViewById(2131623945);
      this.deleteBtn = localButton2;
      this.deleteBtn.setOnClickListener(this);
      ImageView localImageView4 = this.point;
      Drawable localDrawable2 = this.context.getResources().getDrawable(2130837917);
      localImageView4.setImageDrawable(localDrawable2);
    }
  }

  public void onClick(View paramView)
  {
    Button localButton = this.deleteBtn;
    if (paramView == localButton)
    {
      ListItemEventHandler localListItemEventHandler = this.handler;
      int i = this.itemPosition;
      localListItemEventHandler.handleListItemEvent(0, i);
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     com.sina.weibo.view.AccountListItemView
 * JD-Core Version:    0.6.0
 */